import Vue from 'vue'
import Router from 'vue-router'

import index from '@/components/index'

import login from '@/components/user/login'
import register from '@/components/user/register'

import write from '@/components/editor/write'
import quilleditor from '@/components/editor/QuillEditor'
import about from '@/components/about'

import personal_center from '@/components/user/personal_center'

import test from '@/components/test'
import artical from '@/components/artical'
import artical_type from '@/components/artical_type'
import filing from '@/components/filing'

Vue.use(Router)

export default new Router({
    routes: [
        { path: '/', name: 'index', component: index },
        { path: '/login', name: 'login', component: login },
        { path: '/register', name: 'register', component: register },
        { path: '/write', name: 'write', component: write },
        { path: '/about', name: 'about', component: about },
        { path: '/personal_center', name: 'personal_center', component: personal_center },
        { path: '/test', name: 'test', component: test },
        { path: '/quilleditor', name: 'quilleditor', component: quilleditor },
        { path: '/artical/:id', name: 'artical', component: artical },
        { path: '/artical_type/:id', name: 'artical_type', component: artical_type },
        { path: '/filing', name: 'filing', component: filing },
    ]
})